// https://rinkeby.etherscan.io/tx/0x2d4e572aadd4a3b34bddcda09e26c9cdb7e7b8320d6ff2f32fbb14e5ebcf585b

module.exports = {
    CtrAddr: "0x599124c3d13e1745435503c5f7954f79a772bbd4",
    ABI: [
        {
            "constant": false,
            "inputs": [
                {
                    "name": "userId",
                    "type": "uint256"
                },
                {
                    "name": "tradeAmount",
                    "type": "uint256"
                },
                {
                    "name": "isWin",
                    "type": "bool"
                },
                {
                    "name": "winAmount",
                    "type": "uint256"
                }
            ],
            "name": "ChangeBalanceByOrder",
            "outputs": [],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [
                {
                    "name": "",
                    "type": "uint256"
                }
            ],
            "name": "Users",
            "outputs": [
                {
                    "name": "userAddr",
                    "type": "address"
                },
                {
                    "name": "parentAddr",
                    "type": "address"
                },
                {
                    "name": "parentUserId",
                    "type": "uint256"
                },
                {
                    "name": "directChildUserCount",
                    "type": "uint256"
                },
                {
                    "name": "tradeCount",
                    "type": "uint256"
                },
                {
                    "name": "tradeAmount",
                    "type": "uint256"
                },
                {
                    "name": "rewardBlance",
                    "type": "uint256"
                },
                {
                    "name": "balance",
                    "type": "uint256"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [],
            "name": "getRootId",
            "outputs": [
                {
                    "name": "",
                    "type": "uint256"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": false,
            "inputs": [
                {
                    "name": "gameAddr",
                    "type": "address"
                }
            ],
            "name": "CreateNewGame",
            "outputs": [],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [
                {
                    "name": "",
                    "type": "uint256"
                }
            ],
            "name": "GameCtrs",
            "outputs": [
                {
                    "name": "",
                    "type": "address"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [
                {
                    "name": "userId",
                    "type": "uint256"
                },
                {
                    "name": "directChildId",
                    "type": "uint256"
                }
            ],
            "name": "DirectChildId_From_UserId",
            "outputs": [
                {
                    "name": "",
                    "type": "uint256"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": false,
            "inputs": [
                {
                    "name": "userId",
                    "type": "uint256"
                },
                {
                    "name": "amount",
                    "type": "uint256"
                }
            ],
            "name": "ChangeBalanceByLose10",
            "outputs": [],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
        },
        {
            "constant": false,
            "inputs": [
                {
                    "name": "parentAddr",
                    "type": "address"
                },
                {
                    "name": "userAddr",
                    "type": "address"
                },
                {
                    "name": "depositAmount",
                    "type": "uint256"
                }
            ],
            "name": "ChangeBalanceByDeposit",
            "outputs": [],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
        },
        {
            "constant": false,
            "inputs": [
                {
                    "name": "gameId",
                    "type": "uint256"
                },
                {
                    "name": "ctrAddr",
                    "type": "address"
                }
            ],
            "name": "ChangeCtrAddr",
            "outputs": [],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [
                {
                    "name": "",
                    "type": "address"
                }
            ],
            "name": "UserIdByAddr",
            "outputs": [
                {
                    "name": "",
                    "type": "uint256"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": false,
            "inputs": [
                {
                    "name": "userAddr",
                    "type": "address"
                },
                {
                    "name": "withDrawAmount",
                    "type": "uint256"
                }
            ],
            "name": "ChangeBalanceByWithdraw",
            "outputs": [],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
        },
        {
            "inputs": [],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "constructor"
        }
    ]
}